<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    {% load static %}
        <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</head>
<body>

<div>
    <ul class="nav nav-tabs">
        <li role="presentation" class="active"><a href="{% url 'info' %}">个人信息</a></li>
        <li role="presentation"><a href="{% url 'allinfo' %}">全部学生信息</a></li>
        <li role="presentation"><a href="{% url 'data' %}">修改个人信息</a></li>
        <li role="presentation"><a href="{% url 'task' %}">查看任务</a></li>
        <li role="presentation"><a href="{% url 'login' %}">退出</a></li>
    </ul>
</div>

<form action="{% url 'user_img' %}" method="POST" enctype='multipart/form-data'>


<div>
    <table class="table table-hover">
        <thead>
            <tr>
                <th>#</th>
                <th>个人信息</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>姓名</td>
                <td>{{ info }}</td>
            </tr>
            <tr>
                <td>年龄</td>
                <td>{{ age }}</td>
            </tr>
            <tr>
                <td>学历</td>
                <td>{{ xueli }}</td>
            </tr>
            <tr>
                <td>方向</td>
                <td>{{ fx }}</td>
            </tr>
            <tr>
                <td>结果</td>
                <td>{{ jieguo }}</td>
            </tr>
            <tr>
                <td>教师评语</td>
                <td>{{ jianjie }}</td>
            </tr>
        </tbody>
    </table>
</div>


{#    {% if img %}#}
<img src="{% static img %}" style="width: 100px; height: 100px" alt=""> <br/>
{#    {% else %}#}
{#        <img src="{% static img %}" style="width: 100px; height: 100px" alt=""> <br/>#}
{#    {% endif %}#}


    上传图片：<input type="file" name="user_file">
    <button type="submit">保存</button>


</form>
<div>
    <h1><b>{{ err }}</b></h1>
</div>



</body>
</html>